]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Use new convenience method for settings
authorRay Strode <rstrode@redhat.com>
Tue, 23 Aug 2011 14:14:55 +0000 (10:14 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 28 Aug 2011 16:16:04 +0000 (12:16 -0400)
commit13bf64a53df35482441d0193956ff6f2138c1273
treea81175dad4023cb56aa6a4fb49ec68b5e7c37abf
parentf96b2ee8580b9a72e48ba7c823e2f0b2a2fca574
popupMenu: Use new convenience method for settings

All the system status menus in the panel offer a
menu item to jump to a relevant part of the
control-center.

This means each status icon has the same, or nearly the
same bit of code to:

- Add a new "action" menu item and listen for its activation.
- Hide the overview if it's showing when the menu item is activated
- Find the relevant control-center panel from its desktop file
- Launch the control-center to the relevant panel

This commit consolidates all those details in a new method,
addSettingsAction.  This refactoring reduces code duplication and
slight inconsistencies in the code resulting from that duplication.
It will also make it easier in subsequent commits to hide settings menu
items when the shell is used in the login screen.

https://bugzilla.gnome.org/show_bug.cgi?id=657082
js/ui/dateMenu.js
js/ui/popupMenu.js
js/ui/status/accessibility.js
js/ui/status/bluetooth.js
js/ui/status/keyboard.js
js/ui/status/network.js
js/ui/status/power.js
js/ui/status/volume.js